﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PostingDetailControl.ascx.cs" Inherits="Share_PostingDetailControl" %>

<script type="text/javascript" language="javascript" src="../Scripts/Csspopup.js">
</script>
    <div class="competition_box">
        <div class="content_right_title">Posting Details</div>
            <asp:DataList ID="dtlPostingDetails" runat="server" 
            onselectedindexchanged="dtlPostingDetails_SelectedIndexChanged">
              <ItemTemplate>
              <div class="float_left">
            <a href="#" onclick="popup('popUpDiv')"><img  width="100px" height="150px"  alt="" src="../<%# Eval("Url") %>" /></a>
            <div class="cleaner"></div>
            Price: $<%# Eval("Price") %><br /><a href="#" onclick="popup('popUpDiv')">Full size</a>
            </div>
            <div class="competition_info">
                <h1>Posting name: </h1><span><%# Eval("Postingname") %> </span><br />
                <h1>Post Date: </h1><span><%# Eval("PostDate")%> </span><br />
                <h1>Quotations: </h1> <div class="box_d"><%# Eval("Quotations") %></div><br />              
                <h1>Description: </h1> <div class="box_d"><%# Eval("Description") %></div><br />
                <h1>Student Name: </h1><span><%# Eval("Fullname") %></span><br />                
                <h1>Average Marks: </h1><span><asp:Label ID="lb_AverageMarks" runat="server" Text=""></asp:Label></span>
                
                <asp:LinkButton ID="lbtn_Details" OnClick="ViewMarkDetail" runat="server">View Marks Detail</asp:LinkButton>
                    <asp:Panel ID="pn_MarkDetail" runat="server">
                        
                    <asp:Button ID="Button1" runat="server" OnClick="HideMark" Text="Hide Mark Detail" />	
            <asp:GridView ID="grv_MarkDetail" runat="server" AutoGenerateColumns="false">
            <Columns>
                <asp:TemplateField HeaderStyle-HorizontalAlign ="Center" ItemStyle-Width="150px" ItemStyle-CssClass="pad">
                    <HeaderTemplate >Staff Name </HeaderTemplate>
                    <ItemTemplate><%#Eval("FullName") %></ItemTemplate>                    
                </asp:TemplateField>

                <asp:TemplateField ItemStyle-Width="100px" ItemStyle-CssClass="pad" HeaderStyle-HorizontalAlign ="Center">
                    <HeaderTemplate>Mark </HeaderTemplate>
                    <ItemTemplate><%#Eval("Mark") %></ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField ItemStyle-Width="220px" ItemStyle-CssClass="pad" HeaderStyle-HorizontalAlign ="Center">
                    <HeaderTemplate>Remarks </HeaderTemplate>
                    <ItemTemplate><%#Eval("Remarks") %></ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
                     
        </asp:Panel>        
	    </div>              

                <div class="cleaner"></div>                           
            </div>              
      <div id="blanket" style="display: none;"></div>
	<div id="popUpDiv" style="display: none;">    
        <asp:Button ID="btnClose" runat="server" OnClick="ClosePopup" Text="Close" />		
        <img alt="" src="../<%# Eval("Url") %>" />
	</div>
        </ItemTemplate>       
        </asp:DataList>
      </div>

      <div class="cleaner"></div>
         <asp:Button ID="btn_Update" runat="server" Text="Update" 
    onclick="btn_Update_Click" /> <asp:Button ID="btnHide" runat="server" 
    Text="Hide Detail" onclick="btnHide_Click" />
      <br />     
    <br />


    

